package org.jimmy.tang.dto;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * @author jimmy
 * 
 */
public class Event {
    private Long id;// 用来对应数据库表中的id主键

    private String title;// 头衔
    private Date date;// 日期

    private Set<Person> participants = new HashSet<Person>();

    public Set<Person> getParticipants() {
        return participants;
    }

    public void setParticipants(Set<Person> participants) {
        this.participants = participants;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the date
     */
    public Date getDate() {
        return date;
    }

    /**
     * @param date the date to set
     */
    public void setDate(Date date) {
        this.date = date;
    }

}
